﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
///WikiPageBase 的摘要说明
/// </summary>
public class WikiPageBase : EOS.Security.PageBase
{
    public WikiPageBase()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }

    public bool IsAuthorized()
    {
        return true;
    }
    public WikiSystem WikiSystem
    {
        get
        {
            WikiSystem ws = (WikiSystem)Session["WikiSystem"];

            if (ws == null)
            {
                ws = WikiSystem.wikisystem;
                if (ws == null)
                {
                    ws = new WikiSystem(Request.PhysicalApplicationPath);
                    ws.Initialize();
                }
                Session["WikiSystem"] = ws;
            }
            return ws;
        }
    }
    public GraphBase.GraphDatabase GraphDatabase
    {
        get
        {
            return WikiSystem.GraphDatabase;
        }
    }
}
